Optimal. Leaf size=55 \[ \frac{i a^7}{2 d (a-i a \tan (c+d x))^2}-\frac{2 i a^8}{3 d (a-i a \tan (c+d x))^3} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0485425, antiderivative size = 55, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 24, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.083, Rules used = {3487, 43} \[ \frac{i a^7}{2 d (a-i a \tan (c+d x))^2}-\frac{2 i a^8}{3 d (a-i a \tan (c+d x))^3} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3487
Rule 43
Rubi steps
\begin{align*} \int \cos ^6(c+d x) (a+i a \tan (c+d x))^5 \, dx &=-\frac{\left (i a^7\right ) \operatorname{Subst}\left (\int \frac{a+x}{(a-x)^4} \, dx,x,i a \tan (c+d x)\right )}{d}\\ &=-\frac{\left (i a^7\right ) \operatorname{Subst}\left (\int \left (\frac{2 a}{(a-x)^4}-\frac{1}{(a-x)^3}\right ) \, dx,x,i a \tan (c+d x)\right )}{d}\\ &=-\frac{2 i a^8}{3 d (a-i a \tan (c+d x))^3}+\frac{i a^7}{2 d (a-i a \tan (c+d x))^2}\\ \end{align*}
Mathematica [A] time = 0.485156, size = 50, normalized size = 0.91 \[ \frac{a^5 (5 \cos (c+d x)-i \sin (c+d x)) (\sin (5 (c+d x))-i \cos (5 (c+d x)))}{24 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.084, size = 231, normalized size = 4.2 \begin{align*}{\frac{1}{d} \left ({\frac{i}{6}}{a}^{5} \left ( \sin \left ( dx+c \right ) \right ) ^{6}+5\,{a}^{5} \left ( -1/6\, \left ( \sin \left ( dx+c \right ) \right ) ^{3} \left ( \cos \left ( dx+c \right ) \right ) ^{3}-1/8\, \left ( \cos \left ( dx+c \right ) \right ) ^{3}\sin \left ( dx+c \right ) +1/16\,\cos \left ( dx+c \right ) \sin \left ( dx+c \right ) +1/16\,dx+c/16 \right ) -10\,i{a}^{5} \left ( -{\frac{ \left ( \sin \left ( dx+c \right ) \right ) ^{2} \left ( \cos \left ( dx+c \right ) \right ) ^{4}}{6}}-{\frac{ \left ( \cos \left ( dx+c \right ) \right ) ^{4}}{12}} \right ) -10\,{a}^{5} \left ( -1/6\, \left ( \cos \left ( dx+c \right ) \right ) ^{5}\sin \left ( dx+c \right ) +1/24\, \left ( \left ( \cos \left ( dx+c \right ) \right ) ^{3}+3/2\,\cos \left ( dx+c \right ) \right ) \sin \left ( dx+c \right ) +1/16\,dx+c/16 \right ) -{\frac{5\,i}{6}}{a}^{5} \left ( \cos \left ( dx+c \right ) \right ) ^{6}+{a}^{5} \left ({\frac{\sin \left ( dx+c \right ) }{6} \left ( \left ( \cos \left ( dx+c \right ) \right ) ^{5}+{\frac{5\, \left ( \cos \left ( dx+c \right ) \right ) ^{3}}{4}}+{\frac{15\,\cos \left ( dx+c \right ) }{8}} \right ) }+{\frac{5\,dx}{16}}+{\frac{5\,c}{16}} \right ) \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.6701, size = 126, normalized size = 2.29 \begin{align*} \frac{-24 i \, a^{5} \tan \left (d x + c\right )^{4} - 80 \, a^{5} \tan \left (d x + c\right )^{3} + 96 i \, a^{5} \tan \left (d x + c\right )^{2} + 48 \, a^{5} \tan \left (d x + c\right ) - 8 i \, a^{5}}{48 \,{\left (\tan \left (d x + c\right )^{6} + 3 \, \tan \left (d x + c\right )^{4} + 3 \, \tan \left (d x + c\right )^{2} + 1\right )} d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.12146, size = 93, normalized size = 1.69 \begin{align*} \frac{-2 i \, a^{5} e^{\left (6 i \, d x + 6 i \, c\right )} - 3 i \, a^{5} e^{\left (4 i \, d x + 4 i \, c\right )}}{24 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.604502, size = 82, normalized size = 1.49 \begin{align*} \begin{cases} \frac{- 8 i a^{5} d e^{6 i c} e^{6 i d x} - 12 i a^{5} d e^{4 i c} e^{4 i d x}}{96 d^{2}} & \text{for}\: 96 d^{2} \neq 0 \\x \left (\frac{a^{5} e^{6 i c}}{2} + \frac{a^{5} e^{4 i c}}{2}\right ) & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.58836, size = 252, normalized size = 4.58 \begin{align*} \frac{-32 i \, a^{5} e^{\left (18 i \, d x + 12 i \, c\right )} - 240 i \, a^{5} e^{\left (16 i \, d x + 10 i \, c\right )} - 768 i \, a^{5} e^{\left (14 i \, d x + 8 i \, c\right )} - 1360 i \, a^{5} e^{\left (12 i \, d x + 6 i \, c\right )} - 1440 i \, a^{5} e^{\left (10 i \, d x + 4 i \, c\right )} - 912 i \, a^{5} e^{\left (8 i \, d x + 2 i \, c\right )} - 48 i \, a^{5} e^{\left (4 i \, d x - 2 i \, c\right )} - 320 i \, a^{5} e^{\left (6 i \, d x\right )}}{384 \,{\left (d e^{\left (12 i \, d x + 6 i \, c\right )} + 6 \, d e^{\left (10 i \, d x + 4 i \, c\right )} + 15 \, d e^{\left (8 i \, d x + 2 i \, c\right )} + 15 \, d e^{\left (4 i \, d x - 2 i \, c\right )} + 6 \, d e^{\left (2 i \, d x - 4 i \, c\right )} + 20 \, d e^{\left (6 i \, d x\right )} + d e^{\left (-6 i \, c\right )}\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]